Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing yellow warning for UIManager in ReactNative #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tt-driver-apps
Copy link

When using this library with the latest version of ReactNative (e.g. 0.58) we get the following warning:

Accessing view manager configs directly off UIManager via UIManager['InteractableView'] is no longer supported.

This pull request applies the necessary modifications for fixing the problem.

…y in tt-driver-apps for using UIManager.getViewManagerConfig)
@tt-driver-apps tt-driver-apps changed the title Fixing yellow warning in react-native-interactable (forked the librar… Fixing yellow warning for UIManager in ReactNative Feb 6, 2019
@donghungx
Copy link

+1

@@ -107,7 +107,7 @@ class WrappedAnimatedInteractableView extends Component {
if (Platform.OS === 'android') {
UIManager.dispatchViewManagerCommand(
ReactNative.findNodeHandle(this),
UIManager.InteractableView.Commands.bringToFront,
UIManager.getViewManagerConfig('InteractableView').Commands.bringToFront,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you should uniq 'InteractableView' string as a constant

@mattijsf
Copy link

@tt-driver-apps Is it possible you make the requested changes? I hope it can then be merged into master 👍

@alimek
Copy link

alimek commented May 29, 2019

+1

@alimek
Copy link

alimek commented Jun 6, 2019

@tt-driver-apps any chance update PR to the comment, so we can have it merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants